<!doctype html>
<style>
    body * {
        border: 5px solid red;
        padding: 5px;
    }

    span {
        display: inline-block;
        width: 200px;
        border-color: green;
    }

    #container {
        width: 150px;
    }

    .min-width-fit-content,
    .min-width-min-content,
    .min-width-max-content {
        display: inline-block;
    }

    .min-width-max-content { 
        white-space: nowrap;
    }
</style>

<div id="container">

    <div class="min-width-min-content">
        <span>Min Content</span> on this box.
    </div>

    <br>

    <div class="min-width-max-content">
        <span>Max Content</span> on this box.
    </div>

    <br>

    <div class="min-width-fill-available">
        <span>Fill Available</span> on this box.
    </div>

    <div class="min-width-fit-content">
        <span>Fit Content</span> on this box.
    </div>

</div>
